/*! \file */
/*
* Copyright (c) 2008-2011, Thomas Handorf
* 
* This file is part of libScopes.
* libScopes is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* 
* libScopes is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
* 
* You should have received a copy of the GNU Lesser General Public License
* along with libScopes.  If not, see <http://www.gnu.org/licenses/>.
*/
#include <math.h>
#include <algorithm>
#include "array.h"
#include "net.h"
#include "scopes.h"

struct findseed_info {
   size_type numseeds;
   size_type numscopes;
};

VC* findseed(Net* net, VS* idx, VC* tgt, size_type expct=0, size_type brk=0, findseed_info* info=NULL);
void fullRand(VS* IDX, size_type nrc=-1);
void weightRand(VS* IDX, VF* WGT, double beta, size_type num, size_type nrc=-1);
template <class T> void idxSort(VS* idx, array<T>* score, size_type nrc=-1);
template <class T> void _idxSort(VS* idx, array<T>* score, size_type left, size_type right);
